package com.zhijian.warehouse.manage.holder;


import com.zhijian.warehouse.manage.entity.dto.UserDto;

/**
 * 小程序
 *
 * @author lixiaodong
 */
public class CurrentH5UserHolder {
    private static ThreadLocal<UserDto> users = new ThreadLocal<>();

    public static UserDto getUser() {
        return users.get();
    }

    public static void setUser(UserDto userDto) {
        users.set(userDto);
    }

    public static void clear() {
        users.remove();
    }
}
